<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    var age=prompt("请输入你的年龄:");
    var sex=prompt('请输入你的性别:');

    if(age>=18&&sex=='女'){
        alert('女大十八变，越变越好看^-^');
    }else if(age>=18&&sex=='男'){
        alert('男大十八变，越变越难看^-^');
    }
    else if(age<18&&sex=='女'){
        alert('小心渣男');
    }else if(age<18&&sex=='男'){
        alert('小心绿茶');
    }
</script>
</body>
</html>